package com.code.day15;

public class Day15LockTest {
    public static void main(String[] args) {
        DieLock dieLock1 = new DieLock( true);
        DieLock dieLock2 = new DieLock( false);

        Thread thread1 = new Thread(dieLock1);
        Thread thread2 = new Thread(dieLock2);

        thread1.start();
        thread2.start();
    }
}
